package com.zhijian.wharf.enums;

import com.zhijian.wharf.config.Constants;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author HCG
 * @version 1.0
 * @date 2022/5/29
 */
@AllArgsConstructor
@Getter
public enum SystemEnum {

    WEB("后台管理系统", Constants.wharf_WEB_TOKEN, "%s%s:login:token", "%s:login:user", "", "", "", 60 * 60 * 24 * 30),
    MP("小程序端", Constants.wharf_MP_TOKEN, "%s%s:mp:token", "%s:mp:user", "wxd8bbfbf9e65e636e", "fc0e10a9b6f5d480e44cdcee846c5596", "mini:program:access:token", 60 * 60 * 24 * 30),;

    private String name;
    private String tokenKey;
    private String loginTokenKey;
    private String userKey;

    private String appId;

    private String appSecret;

    private String miniProgramAccessTokenKey;

    /**
     * 用户登陆过期时间
     */
    private int loginExpireTime;
}
